package com.hualan.mapper;

import com.hualan.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ArticleMapper {
    List<Article> getArticlesByTitle(String title,Integer userId);

    void addArticle(Article article);

    void updateArticle(Article article);

    void deleteArticles(List<Integer> ids);

    List<Article> getArticlesByUserId(Integer userId);
    List<Article> findAllByConsultant_idArticles(Integer id);

}
